@echo off
set dir="a\b\c"
::md a\b\c
::md %dir%

::set dir="q\w\e"
set dir="q\w\e"
md %dir%
echo %dir%